package com.danci.controller;

import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/file")
@Api("文件")
@AllArgsConstructor
public class FileController {


    @PostMapping("/test")
    public void test(MultipartFile file, @RequestParam("type")String type){
        System.out.println(file);
        System.out.println(type);
    }
}
